package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Shop;
import cn.wolfcode.crm.mapper.ShopMapper;
import cn.wolfcode.crm.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * 作者:唐福忠
 */
@Service
public class ShopServiceImpl implements IShopService {

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(Shop record) {
        return 0;
    }

    @Override
    public Shop selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public List<Shop> selectAll() {
        return shopMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Shop record) {
        return 0;
    }

    public List<Shop> listAllShop() {
        return shopMapper.listAllShop();
    }
}
